﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;

/// <summary>
///PdaService 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。 
// [System.Web.Script.Services.ScriptService]
public class MagnaData : System.Web.Services.WebService {
     
    public MagnaData() {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld() {
        return "Hello World";
    }


    [WebMethod(Description = "麦格纳数据库获取CMS数据")]
    public string CmsDataGet(List<string> List)
    {
        return LicMagnaCmsData.MainHandler.MessageHandlerGet(List, "GET");
    }

    [WebMethod(Description = "CMS数据写入正天数据库")]
    public string CmsDataSet(string xml,string tablename)
    {
        return LicMagnaCmsData.MainHandler.MessageHandlerSet(xml, tablename);
    }
}
